package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class Popup implements Sequenceable, Serializable {

    @SerializedName("confirmDialogRenderer")
    private ConfirmDialogRenderer confirmDialogRenderer;

    public static final Sequenceable.Producer<Popup> CREATOR = new Producer<Popup>() {
        @Override
        public Popup createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            Popup popup = new Popup();
            popup.unmarshalling(parcel);
            return popup;
        }
    };


    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeSequenceable(this.confirmDialogRenderer);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        parcel.readSequenceable(this.confirmDialogRenderer);
        return true;
    }

    @Override
    public String toString() {
        return "Popup{" +
                "confirmDialogRenderer=" + confirmDialogRenderer +
                '}';
    }

    public ConfirmDialogRenderer getConfirmDialogRenderer() {
        return confirmDialogRenderer;
    }

    public void setConfirmDialogRenderer(ConfirmDialogRenderer confirmDialogRenderer) {
        this.confirmDialogRenderer = confirmDialogRenderer;
    }

}
